package com.dongdongshop.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongdongshop.mapper.TbUserMapper;
import com.dongdongshop.pojo.TbSeller;
import com.dongdongshop.pojo.TbUser;
import com.dongdongshop.service.TbUserService;
import org.springframework.beans.factory.annotation.Autowired;

@Service
@org.springframework.stereotype.Service
public class TbUserServiceImpl implements TbUserService {

    @Autowired
    private TbUserMapper tbUserMapper;

    @Override
    public TbUser qurieName(String username) {
        TbUser tbUser = tbUserMapper.qurieName(username);
        return tbUser;
    }

    @Override
    public void getRegisterInfo(TbUser tbUser) {
        tbUserMapper.insertSelective(tbUser);
    }
}
